<?php
	//修改配置内容
	require '../biz/backend.php';

	class action extends backend
	{
		var $get_privilege_id = 81;
		var $post_privilege_id = 81;

		function do_get()
		{
			$url = isset( $this->input['reference'] ) ? $this->input['reference'] : config( 'server.HTTP_REFERER' );

			$config = load( 'biz.tag' );
			$result = $config->del( $this->input );

			if ( $result )
			{
				$this->prompt( '删除成功', array( array( 'url' => $url, 'name' => '返回列表' ) ) );
			}
			else
			{
				$this->prompt( '删除失败', $this->transform( $result['message'], config( 'server.HTTP_REFERER' ) ) );
			}
		}
	}

	$action = new action();
	$action->run();
?>